package top.lixunda.ecommerce.server.user.api.feign;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import top.lixunda.commerce.common.core.config.FeignConfig;
import top.lixunda.commerce.common.core.constants.ServiceIds;
import top.lixunda.commerce.common.core.entity.MessageObject;

import java.util.Map;

/**
 * 测试Feign调用接口
 *
 * @author lixunda
 * @version time:2020/4/21 9:10
 */
@Api("测试Feign调用接口")
@FeignClient(value = ServiceIds.MIDDLE_USER, configuration = FeignConfig.class)
@RequestMapping("/feign/test")
public interface IFeignTestController {

    /**
     * 测试springSession同步
     *
     * @return 返回结果
     */
    @ApiOperation("测试springSession同步")
    @PostMapping("testSpringSession")
    MessageObject<Map<String, String>> testSpringSession();

}
